package com.wcity.manage.dao.model;

import com.wcity.manage.dao.dal.model.AbstractModel;

import java.util.Date;

/**
 * 用户实体类
 *
 * @author dy
 */
public class User extends AbstractModel {

    private static final long serialVersionUID = 6152780909362474073L;

    private int id;
    private Date createTime;     // 创建时间
    private boolean isAvailable; // 是否可用(0禁用, 1启用)
    private String userName;     // 用户名
    private String pwd;          // 密码
    private String personName;   // 联系人
    private String workNo;       // 物业社区
    private String mobile;       // 手机号
    private String hotLine;      // 热线
    private String county;       // 区县
    private Date lastLoginTime;  // 最后登录时间
    private int roleId;          // 用户角色id, <FK>tc_manage_role.id
    private Role role;           // 用户角色

    public String getHotLine() {
        return hotLine;
    }

    public void setHotLine(String hotLine) {
        this.hotLine = hotLine;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public boolean getIsAvailable() {
        return isAvailable;
    }

    public void setIsAvailable(boolean isAvailable) {
        this.isAvailable = isAvailable;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public String getWorkNo() {
        return workNo;
    }

    public void setWorkNo(String workNo) {
        this.workNo = workNo;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }
}
